sources := ${shell echo *.f95}
compiler := gfortran

###
#exe := $(sources:.f95=.exe)
#.PHONY : exes
#exes : $(exe)
#$(exe) : %.exe : %.f95
#	- gfortran -o bin/$@ $<

###
out := $(sources:.f95=.x)
.PHONY : outs
outs : $(out)
$(out) : %.x : %.f95
	-$(compiler) -g -o $@ $<

###
.PHONY : all
all :  $(out)

.PHONY : clean

clean :
	-rm *.x *.mod

#namefrom := ${shell echo *.f90}
#nameto := ${namefrom:.f90=.f95}
#chname : $(nameto)
#$(nameto) : %.f95 : %.f90
#	mv $< $@
